;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2022 (unmatched parenthesis <paren@disroot.org>
;;;
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (guixrus packages atf)
  #:use-module (guix build-system gnu)
  #:use-module (guix git-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (gnu packages autotools)
  #:use-module ((guixrus contributors) #:prefix contributor:))

(define-public atf
  ;; Last tag was in 2014, last commit was in 2019.
  (let ((commit "aa8e0fe2c17821a2e818375f901c8f37494ae33b")
        (revision "0"))
    (package
     (name "atf")
     (version (git-version "0.21" revision commit))
     (source (origin
              (method git-fetch)
              (uri (git-reference
                     (url "https://github.com/jmmv/atf")
                     (commit commit)))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "08vjkxjf5k8clp0a824frk0n70r5kdanx2s1da0i7ph34ahcqpsc"))))
     (build-system gnu-build-system)
     (native-inputs (list autoconf automake libtool))
     (home-page "https://github.com/jmmv/atf")
     (synopsis "Libraries for writing tests in C, C++ and shell")
     (description
      "ATF, or Automated Testing Framework, is a collection of libraries to
write test programs in C, C++ and POSIX shell.")
     (license license:bsd-3)
     (properties `((maintainers . (,contributor:unmatched-paren)))))))
